#pragma once

#include "ofMain.h"
#include "ofxiPhone.h"
#include "ofxiPhoneExtras.h"

struct Ball {
	int x;
	int y;
    //ofPoint pos;
    //int alpha;
};

class testApp : public ofxiPhoneApp {
	
public:
	void setup();
	void update();
	void draw();
	void exit();
	
	void touchDown(ofTouchEventArgs &touch);
	void touchMoved(ofTouchEventArgs &touch);
	void touchUp(ofTouchEventArgs &touch);
	void touchDoubleTap(ofTouchEventArgs &touch);
	void touchCancelled(ofTouchEventArgs &touch);

	void lostFocus();
	void gotFocus();
	void gotMemoryWarning();
	void deviceOrientationChanged(int newOrientation);
	
	bool treat;
	
	int xpos;
	int ypos;
	int size;
	int score;
	//int xposar[size];
	//int yposar[size];
	
	
	int xmov;
	int ymov;
	int x1;
	int y1;
	//int x2;
	//int y2;
	
	int i;
	int j;
	
	Ball balls[];
	

};


